import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    }
    ,
    {
      path: '/practise1',
      component: () => import('@/views/Practise1.vue')
    }
    ,
    {
      path: '/practise2',
      component: () => import('@/views/Practise2.vue')
    }
    ,
    {
      path: '/prac3',
      component: () => import('@/views/Prac3View.vue')
    }
    ,
    {
      path: '/prac4',
      component: () => import('@/views/Prac4View.vue')
    }
    ,
    {
      path: '/vue2f',
      component: () => import('@/views/Vue2Father.vue')
    }
    ,
    {
      path: '/vue3f',
      component: () => import('@/views/Vue3Father.vue')
    }
    ,
    {
      path: '/axios',
      component: () => import('@/views/AxiosView.vue')
    }
  ]
})

export default router
